import { GSprite } from "../../../../../../com/mui/controls/GSprite";
import { LoaderHelp } from "../../../../../common/display/LoaderHelp";
import { ImagesConst } from "../../../../resource/ImagesConst";
import { ObjCreate } from "../../../common/ObjCreate";
import { GlobalStyle } from "../../../../../common/global/GlobalStyle";
import { FontUtil } from "../../../../../common/font/FontUtil";
import { FilterConst } from "../../../../../component/gconst/FilterConst";
import { SecTimerView } from "../../../common/SecTimerView";
type int = number;
//class CrossGuildWarChooseBase
    
    export  class CrossGuildWarChooseBase extends GSprite
    {
        constructor(arg1: string="CrossGuildWar_ByMaster")
        {
            super();
            this._bmpOpBy = new Object /* flash.display.Bitmap */();
            this._selectByImg = arg1;
            return;
        }

        public /* override */ dispose(arg1: Boolean=true): void
        {
            if (this._txtSectTimer != null) 
            {
                this._txtSectTimer.stop();
                this._txtSectTimer.dispose(arg1);
                this._txtSectTimer = null;
            }
            return;
        }

        public updateSelectLeftTime(arg1: int): void
        {
            this._txtSectTimer.setLeftTime(arg1);
            return;
        }

        protected /* override */ disposeImpl(arg1: Boolean=true): void
        {
            return;
        }

        protected /* override */ createDisposedChildrenImpl(): void
        {
            var loc2=null;
            var loc3=null;
            var loc1=new Object /* flash.display.Bitmap */();
            this.addChild(loc1);
            LoaderHelp.setBitmapdata(ImagesConst.CrossGuildWarBg + ".swf", loc1, 0, 0, 804, 142);
            this._bmpOpBy = ObjCreate.createBitmap(this._selectByImg, 258, 150, this);
            ObjCreate.createBg(280, 175, 240, 27, this, ImagesConst.SelectedBg);
            ObjCreate.createBitmap(ImagesConst.CrossGuildWar_CountDown, 299, 179, this);
            loc2 = GlobalStyle.textFormat2;
            loc2.size = 25;
            loc2.color = 65280;
            loc2.font = FontUtil.xingkaiName;
            loc2.bold = true;
            this._txtSectTimer = ObjCreate.createSecTimeView("mm: ss", 428, 177, 200, 30, this, loc2);
            this._txtSectTimer.filters = [FilterConst.glowFilter];
            this.updateSelectLeftTime(0);
            var loc4=new Object /* flash.display.Bitmap */();
            this.addChild(loc4);
            LoaderHelp.setBitmapdata(ImagesConst.CrossGuildWarBgGrop + ".swf", loc4, 0, 206, 804, 278);
            ObjCreate.createFlowerBg(0, 206, 804, 275, this);
            return;
        }

        protected /* var */_bgTop: Object /* flash.display.Bitmap */;

        protected /* var */_txtSectTimer: SecTimerView;

        /* internal */ /* var */_selectByImg: string;

        protected /* var */_bmpOpBy: Object /* flash.display.Bitmap */;
    }
